package com.mzpai.web.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.mzpai.product.model.Express;
import com.mzpai.product.service.ExpressService;
import com.mzpai.vo.ResponseVo;
/**
 *
 * <b>快递公司 | Controller</b><br>
 *
 * yanglijun 2021-04-10 12:03:37
 * 
 *  @version 1.0.0
 *
 */
@Controller
@RequestMapping("/express")
public class ExpressController extends BaseController {

	@Autowired 
	private ExpressService expressService;
	private static Logger log = LoggerFactory.getLogger(ExpressController.class);
	/** 
	*
	* 查询列表 
	* @throws Exception
	*/
	@RequestMapping("/getList")
	@ResponseBody
	public ResponseVo<List<Express>> getList() throws Exception {
		ResponseVo<List<Express>> res=new ResponseVo<List<Express>>();
		Map<String, Object> searchMap = new HashMap<String, Object>();
		List<Express> list = expressService.getList(searchMap);
		res.setResult(list);
		return res;
	}


}